package com.erpx.api.trade;

import com.erpx.api.WdtClient;
import com.erpx.api.CommonConstants;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class TradeQueryService {

    public static void queryTradeOrder() {
        WdtClient client = new WdtClient(CommonConstants.sid, CommonConstants.appkey, CommonConstants.appSecret, CommonConstants.baseUrl);
        Map<String, String> params = new HashMap<String, String>();
        params.put("page_no", "0");
        params.put("page_size", "100");
        //        2024-06-11 14:00:00

        params.put("start_time", "2025-01-09 15:00:00");
        params.put("end_time", "2025-01-09 16:00:00");
        try {
            String response = client.execute("trade_query.php", params);
            System.out.println(response);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
